<!DOCTYPE html>
<html>
  {% with messages = get_flashed_messages(with_categories = true) %}
    {% if messages %}
      {% for category, message in messages %}
        <div class="alert alert-{{ category }}" style="text-align: center">
          <button data-dismiss="alert" class="close" type="button">×</button>
          <strong>{{ message }}</strong>
        </div>
      {% endfor %}
    {% endif %}
  {% endwith %}
</html>
